package com.feilx.changggou.seckill.service.impl;

import com.changgou.bean.PageVo;
import com.changgou.bean.Query;
import com.changgou.bean.QueryCondition;
import com.changgou.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.feilx.changggou.seckill.dao.TbSeckillOrderDao;
import com.feilx.changggou.seckill.entity.TbSeckillOrderEntity;
import com.feilx.changggou.seckill.service.TbSeckillOrderService;


@Service
public class TbSeckillOrderServiceImpl extends ServiceImpl<TbSeckillOrderDao, TbSeckillOrderEntity> implements TbSeckillOrderService {

    @Autowired
    private RedisUtils redisUtils;

    @Override
    public PageVo queryPage(QueryCondition params) {
        IPage<TbSeckillOrderEntity> page = this.page(
                new Query<TbSeckillOrderEntity>().getPage(params),
                new QueryWrapper<TbSeckillOrderEntity>()
        );
        return new PageVo(page);
    }

    @Override
    public boolean add(String id, String time, String userName) {
        return false;
    }

}
